package cn.org.itool.demo.controller;


import cn.org.itool.ws.framework.annotation.CommandMapping;
import cn.org.itool.ws.framework.annotation.Handler;
import cn.org.itool.ws.framework.utils.ChannelUtils;
import cn.org.itool.demo.vo.UserTagVO;
import io.netty.channel.Channel;

@Handler
public class TagController {

    @CommandMapping("/api/tag/setTag")
    public Boolean setTag(UserTagVO userTag, Channel channel) {
        ChannelUtils.setUserTag(channel, userTag.getTags());
        return Boolean.TRUE;
    }
}
